package com.futureCloudMOM.core.domain;

import com.baomidou.mybatisplus.annotation.TableField;
import com.baomidou.mybatisplus.annotation.TableName;
import com.futureCloudMOM.core.entity.FBaseEntity;
import io.swagger.annotations.ApiModel;
import io.swagger.annotations.ApiModelProperty;
import lombok.Data;
import lombok.EqualsAndHashCode;
import org.hibernate.validator.constraints.Length;

import javax.validation.constraints.NotBlank;
import javax.validation.constraints.NotNull;
import javax.validation.constraints.Size;
import java.io.Serializable;
import java.util.Date;

@Data
@EqualsAndHashCode(callSuper = true)
@ApiModel(value = "Produce_FeedRecord", description = "物料投料记录表")
@TableName(value = "Produce_FeedRecord")
public class ProduceFeedRecord extends FBaseEntity implements Serializable {


    
    @NotNull(message="[任务主表ID]不能为空")
    @ApiModelProperty("任务主表ID")
    @TableField(value = "taskId")
    private Long taskId;
    
    @NotNull(message="[任务子表ID]不能为空")
    @ApiModelProperty("任务子表ID")
    @TableField(value = "taskSubId")
    private Long taskSubId;
    
    @ApiModelProperty("生产资源")
    @TableField(value = "resourceId")
    private Long resourceId;
    
    @NotNull(message="[工序]不能为空")
    @ApiModelProperty("工序")
    @TableField(value = "processId")
    private Long processId;
    
    @NotNull(message="[物料]不能为空")
    @ApiModelProperty("物料")
    @TableField(value = "materialId")
    private Long materialId;
    
    @NotBlank(message="[条码数量]不能为空")
    @Size(max= 500,message="编码长度不能超过500")
    @ApiModelProperty("条码数量")
    @Length(max= 500,message="编码长度不能超过500")
    @TableField(value = "qty")
    private String qty;
    
    @NotNull(message="[投料人员]不能为空")
    @ApiModelProperty("投料人员")
    @TableField(value = "employeeId")
    private Long employeeId;
    
    @ApiModelProperty("投料日期")
    @TableField(value = "feedTime")
    private Date feedTime;
    
    @NotBlank(message="[投入条码]不能为空")
    @Size(max= 500,message="编码长度不能超过500")
    @ApiModelProperty("投入条码")
    @Length(max= 500,message="编码长度不能超过500")
    @TableField(value = "barcode")
    private String barcode;






}

